<?php
require_once 'ambiente.php';
require_once 'DbConfig.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/../../'.'Libraries/Objects/obj.mail.mex';
require_once $_SERVER['DOCUMENT_ROOT'].'/../../'.'Libraries/DB/db_conn.php';

//Instance Root
#$GLOBALS['ROO'] = "C:\ERP\TugaQAD/";
$GLOBALS['ROO']=$_SERVER['DOCUMENT_ROOT'].'/../../';
$frontoffice=$GLOBALS['ROO'].'webroot/SystemOffice/';
// Caminho de linguas
$GLOBALS['LNG'] = $GLOBALS['ROO']."Languages/";

//Document Folder
#$GLOBALS['DOC'] = "\\\\192.168.0.30\ITShared\TugaDATA/";
$GLOBALS['DOC'] = "\\\\192.168.0.30\\ITShared\\TugaDATA\\";

#$__sysTDFTImport_Directory = "\\\\192.168.0.30\ITShared\TugaFT/";
$__sysTFTImport_Directory = "\\\\192.168.0.12\\backup\\SysTFTDOC";

//Regional And Time Settings
$__sys['Country'] = 620; // Install Country ID CODE
$__sys['Currency'] = 1; // Install Currency ID CODE
$__sys['CurrencyISO'] = 'EUR'; // Install Country ID CODE
$sysTime = date("Y-m-d H:i:s");

//Session Settings # STRING(2)
$SESSST = 'PT';


#Carrega Bibliotecas
require_once $GLOBALS['ROO'].'common/common.php';

# MAIL CONFIG #
//O real é o 5
//$_sysconfMailServer = '192.168.0.4';
$_sysconfMailServer = '192.168.0.79';
$_sysconfMailUser = 'no-reply@moneyexpress.pt';
$_sysconfMailPass = 'panasca';
$_sysconfMailPort = '25';

$_sysconfMailString = $_sysconfMailServer.';'.$_sysconfMailPort.';'.$_sysconfMailUser.';'.$_sysconfMailPass;

// Internal Mail Admin Address
$_sysconfMailAddress1 = Empresa::getNome().' - Suporte';
$_sysconfMailName1 = 'no-reply@moneyexpress.pt';

// Internal Mail Report Address
$_sysconfMailAddress2 = '';
$_sysconfMailName2 = Empresa::getNome().' - Apoio ao cliente';

// External Mail Support Address
$_sysconfMailAddress3 = '';
$_sysconfMailName3 = Empresa::getNome().' - Apoio ao cliente';

$_sysMailreportDB = 'ruben.couto@moneyexpress.pt';